<h3>Modules List</h3>    
<?php
if(empty($this->listModules['modules'])) echo 'No module defined so far';
else {
  foreach($this->listModules['modules'] as $nm => $module) {
	echo '<h3><a href="'.$this->baseURL().'/apidesigner/'.$module['name'].'/">'.$module['name'].'</a></h3>';
	echo '<p>'.$module['description'].'</p>';	
  }
}

?>

<h3>Create new API module</h3>
<form action="<?php echo $this->baseURL() ?>/apidesigner/index/createnewmodule/" method="post">
Module Name: <input type="text" name="moduleName" /><br />
Module Definition: <textarea name="moduleDefinition" cols="40" rows="4"></textarea><br />
<button type="submit">Create new module</button>
</form>

